$OpenBSD: patch-configure,v 1.2 2012/04/05 11:41:32 ajacoutot Exp $
--- configure.orig	Sun Jan 15 17:01:05 2012
+++ configure	Sat Mar 17 12:24:59 2012
@@ -13576,7 +13576,7 @@ if test "${ac_cv_lib_vorbisfile_ov_open_callbacks+set}
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lvorbisfile  $LIBS"
+LIBS="-lvorbisfile -lvorbis -logg $LIBM  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -13815,7 +13815,7 @@ fi
 
     if test x$have_flac_export = xyes; then
         LIBS_SAVED="$LIBS"
-        LIBS="-lFLAC"
+        LIBS="-lFLAC -logg $LIBM"
         { echo "$as_me:$LINENO: checking for libflac so-name version >= $libflac_ver" >&5
 echo $ECHO_N "checking for libflac so-name version >= $libflac_ver... $ECHO_C" >&6; }
         cat >conftest.$ac_ext <<_ACEOF
@@ -14009,7 +14009,7 @@ if test "${ac_cv_lib_FLAC_FLAC__stream_decoder_new+set
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lFLAC  $LIBS"
+LIBS="-lFLAC -logg $LIBM  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
